﻿package com.PlantVsZombies.constant;

import java.util.List;

import com.PlantVsZombies.pass.PassBuilder;
import com.PlantVsZombies.pass.PassMeta;

/**
 * 
 * 接口 常量
 * 
 * 
 * @author Administrator
 *
 */

public interface Constant {

	int WIDTH = 1200; // 面板大小
	int HEIGHT = 600;

	int LEFT_OFFSET = 220;
	int SEED_OFFSET = 100; // 卡片距离左边距

	int ADD_SUN_OFFSET = 79;
	int ADD_SUN_COUNT_X_OFFSET = 16;
	int ADD_SUN_COUNT_y_OFFSET = 80;
	int TOP_OFFSET = 9;
	int CARD_WIDTH = 50; // 卡片大小
	int CARD_HEIGHT = 70;
	int CARD_GAP_W = 2; // 卡片之间间隙
	int CARD_GAP_H = 1;

	int DEFAULT_FPS = 120; // 缺省间隔秒数

	int MAP_WEST_OFFSET = 100; // 画面左边距
	int MAP_TOP_OFFSET = 82; // 画面上边距

	int MAP_COL = 9; // 草坪数
	int MAP_ROW = 5;

	int MAP_RECT_WIDTH = 81; // 草坪每格宽度
	int MAP_RECT_HEIGHT = 98; // 草坪每格高度

	int PLANT_WIDTH = 75; // 植物宽度
	int PLANT_HEIGHT = 90; // 植物高度

	int Normal_Zombie_WIDTH = 90;
	int Normal_Zombie_HEIGHT = 130;
	
	int BACKGROUND_START = -1; // 背景起始坐标
	int BEGIN_INDEX = 500; // 画倒计时 用于计时
	
	/** 出每个僵尸出现的间隔 */
	int PRODUCE_ZOMBIE_SPEED = 6000; // ms相对速度
	/** 每波僵尸出现的间隔 */
	int GROUP_ZOMBIE_SPEED = 20000;

	/*int PASS[][][] = {
			{ { 0 } ,{1,2}, { 0, 1, 4 }},
			{ { 0 }, { 0, 1, 4, 6 }, { 0, 6, 3, 2, 1 },
					{ 0, 6, 2, 5,4 } },
			{ { 0, 1 }, { 0, 1, 2, 1 }, { 0, 1, 3, 2, 1 },
					{ 0, 1, 3, 2 }, { 0, 3, 2, 1, 3 } } };*/
	
	int PASS[][][] = {
			{ { 0 } , {1}},
			{ { 1 } },
			{ { 0, 1 }, { 0, 1, 2, 1 }, { 0, 1, 3, 2, 1 },
					{ 0, 1, 3, 2 }, { 0, 3, 2, 1, 3 } } };
	
	public static List<PassMeta> list = PassBuilder.arrayToPass(PASS);

	PlantType[][] seedMap = new PlantType[][] {
			{ PlantType.SingleBullet, PlantType.SunFlower, PlantType.Cherry,
					PlantType.SmallStone, PlantType.QH1, PlantType.QH2,
					PlantType.QH3, PlantType.DoubBullet }, {} };
		
}
